[INFO] fetching crate ltr303 0.1.4...
[INFO] testing ltr303-0.1.4 against master#1f7f8ea0721a3b1eb73e6c6d25cccb371434b320 for pr-154065-1
[INFO] extracting crate ltr303 0.1.4 into /workspace/builds/worker-5-tc1/source
[INFO] started tweaking crates.io crate ltr303 0.1.4
[INFO] finished tweaking crates.io crate ltr303 0.1.4
[INFO] tweaked toml for crates.io crate ltr303 0.1.4 written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate ltr303 0.1.4 on toolchain 1f7f8ea0721a3b1eb73e6c6d25cccb371434b320
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 64 packages to latest compatible versions
[INFO] [stderr]       Adding embedded-hal-mock v0.10.0 (available: v0.11.1)
[INFO] [stderr]       Adding num-derive v0.3.3 (available: v0.4.2)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded linux-embedded-hal v0.4.1
[INFO] [stderr]   Downloaded gpio-cdev v0.6.0
[INFO] [stderr]   Downloaded spidev v0.6.1
[INFO] [stderr]   Downloaded embedded-hal-mock v0.10.0
[INFO] [stderr]   Downloaded i2cdev v0.6.2
[INFO] [stderr]   Downloaded sysfs_gpio v0.6.2
[INFO] [stderr]   Downloaded serialport v4.9.0
[INFO] [stderr]   Downloaded nix v0.23.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 56e2f85106ac8a31c573d738960c76649553a0a9609ff1059e3068f02ca2af2a
[INFO] running `Command { std: "docker" "start" "-a" "56e2f85106ac8a31c573d738960c76649553a0a9609ff1059e3068f02ca2af2a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "56e2f85106ac8a31c573d738960c76649553a0a9609ff1059e3068f02ca2af2a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "56e2f85106ac8a31c573d738960c76649553a0a9609ff1059e3068f02ca2af2a", kill_on_drop: false }`
[INFO] [stdout] 56e2f85106ac8a31c573d738960c76649553a0a9609ff1059e3068f02ca2af2a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] db6be8ca94df3264b8c6ddc4a340c74bde6daea22e71193763deb6f436c025dd
[INFO] running `Command { std: "docker" "start" "-a" "db6be8ca94df3264b8c6ddc4a340c74bde6daea22e71193763deb6f436c025dd", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-rational v0.4.2
[INFO] [stderr]    Compiling num-complex v0.4.6
[INFO] [stderr]    Compiling num v0.4.3
[INFO] [stderr]    Compiling ltr303 v0.1.4 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::create_register`
[INFO] [stdout]  --> src/registers.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::create_register;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:1:41
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                         ^------------
[INFO] [stdout]   |                                         |
[INFO] [stdout]   |                                         `FromPrimitive` is not local
[INFO] [stdout]   |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Mode`
[INFO] [stdout] 2 | pub enum Mode {
[INFO] [stdout]   |          ---- `Mode` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:1:56
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                                        ^----------
[INFO] [stdout]   |                                                        |
[INFO] [stdout]   |                                                        `ToPrimitive` is not local
[INFO] [stdout]   |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Mode`
[INFO] [stdout] 2 | pub enum Mode {
[INFO] [stdout]   |          ---- `Mode` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:7:41
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                         ^------------
[INFO] [stdout]   |                                         |
[INFO] [stdout]   |                                         `FromPrimitive` is not local
[INFO] [stdout]   |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Gain`
[INFO] [stdout] 8 | pub enum Gain {
[INFO] [stdout]   |          ---- `Gain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:7:56
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                                        ^----------
[INFO] [stdout]   |                                                        |
[INFO] [stdout]   |                                                        `ToPrimitive` is not local
[INFO] [stdout]   |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Gain`
[INFO] [stdout] 8 | pub enum Gain {
[INFO] [stdout]   |          ---- `Gain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:30:41
[INFO] [stdout]    |
[INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MeasurementRate`
[INFO] [stdout] 31 | pub enum MeasurementRate {
[INFO] [stdout]    |          --------------- `MeasurementRate` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:30:56
[INFO] [stdout]    |
[INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_MeasurementRate`
[INFO] [stdout] 31 | pub enum MeasurementRate {
[INFO] [stdout]    |          --------------- `MeasurementRate` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:40:41
[INFO] [stdout]    |
[INFO] [stdout] 40 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_IntegrationTime`
[INFO] [stdout] 41 | pub enum IntegrationTime {
[INFO] [stdout]    |          --------------- `IntegrationTime` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:40:56
[INFO] [stdout]    |
[INFO] [stdout] 40 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_IntegrationTime`
[INFO] [stdout] 41 | pub enum IntegrationTime {
[INFO] [stdout]    |          --------------- `IntegrationTime` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:68:41
[INFO] [stdout]    |
[INFO] [stdout] 68 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ISRMode`
[INFO] [stdout] 69 | pub enum ISRMode {
[INFO] [stdout]    |          ------- `ISRMode` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:68:56
[INFO] [stdout]    |
[INFO] [stdout] 68 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ISRMode`
[INFO] [stdout] 69 | pub enum ISRMode {
[INFO] [stdout]    |          ------- `ISRMode` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:74:41
[INFO] [stdout]    |
[INFO] [stdout] 74 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ISRPol`
[INFO] [stdout] 75 | pub enum ISRPol {
[INFO] [stdout]    |          ------ `ISRPol` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:74:56
[INFO] [stdout]    |
[INFO] [stdout] 74 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ISRPol`
[INFO] [stdout] 75 | pub enum ISRPol {
[INFO] [stdout]    |          ------ `ISRPol` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:80:41
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DataValidity`
[INFO] [stdout] 81 | pub enum DataValidity {
[INFO] [stdout]    |          ------------ `DataValidity` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:80:56
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_DataValidity`
[INFO] [stdout] 81 | pub enum DataValidity {
[INFO] [stdout]    |          ------------ `DataValidity` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:86:41
[INFO] [stdout]    |
[INFO] [stdout] 86 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DataStatus`
[INFO] [stdout] 87 | pub enum DataStatus {
[INFO] [stdout]    |          ---------- `DataStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:86:56
[INFO] [stdout]    |
[INFO] [stdout] 86 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_DataStatus`
[INFO] [stdout] 87 | pub enum DataStatus {
[INFO] [stdout]    |          ---------- `DataStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:92:28
[INFO] [stdout]    |
[INFO] [stdout] 92 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                            ^------------
[INFO] [stdout]    |                            |
[INFO] [stdout]    |                            `FromPrimitive` is not local
[INFO] [stdout]    |                            move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_IntStatus`
[INFO] [stdout] 93 | pub enum IntStatus {
[INFO] [stdout]    |          --------- `IntStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:92:43
[INFO] [stdout]    |
[INFO] [stdout] 92 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                           ^----------
[INFO] [stdout]    |                                           |
[INFO] [stdout]    |                                           `ToPrimitive` is not local
[INFO] [stdout]    |                                           move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_IntStatus`
[INFO] [stdout] 93 | pub enum IntStatus {
[INFO] [stdout]    |          --------- `IntStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:98:28
[INFO] [stdout]    |
[INFO] [stdout] 98 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                            ^------------
[INFO] [stdout]    |                            |
[INFO] [stdout]    |                            `FromPrimitive` is not local
[INFO] [stdout]    |                            move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ResetStatus`
[INFO] [stdout] 99 | pub enum ResetStatus {
[INFO] [stdout]    |          ----------- `ResetStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:98:43
[INFO] [stdout]    |
[INFO] [stdout] 98 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                           ^----------
[INFO] [stdout]    |                                           |
[INFO] [stdout]    |                                           `ToPrimitive` is not local
[INFO] [stdout]    |                                           move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ResetStatus`
[INFO] [stdout] 99 | pub enum ResetStatus {
[INFO] [stdout]    |          ----------- `ResetStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.85s
[INFO] running `Command { std: "docker" "inspect" "db6be8ca94df3264b8c6ddc4a340c74bde6daea22e71193763deb6f436c025dd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "db6be8ca94df3264b8c6ddc4a340c74bde6daea22e71193763deb6f436c025dd", kill_on_drop: false }`
[INFO] [stdout] db6be8ca94df3264b8c6ddc4a340c74bde6daea22e71193763deb6f436c025dd
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ff67ccc6dba37269439905a726dce5e9c69ab3ca4f4cbb94e43d763ba787e2f0
[INFO] running `Command { std: "docker" "start" "-a" "ff67ccc6dba37269439905a726dce5e9c69ab3ca4f4cbb94e43d763ba787e2f0", kill_on_drop: false }`
[INFO] [stderr]    Compiling memoffset v0.7.1
[INFO] [stderr]    Compiling embedded-hal-nb v1.0.0
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]    Compiling nix v0.23.2
[INFO] [stderr]    Compiling nix v0.27.1
[INFO] [stdout] warning: unused import: `crate::create_register`
[INFO] [stdout]  --> src/registers.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::create_register;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:1:41
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                         ^------------
[INFO] [stdout]   |                                         |
[INFO] [stdout]   |                                         `FromPrimitive` is not local
[INFO] [stdout]   |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Mode`
[INFO] [stdout] 2 | pub enum Mode {
[INFO] [stdout]   |          ---- `Mode` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:1:56
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                                        ^----------
[INFO] [stdout]   |                                                        |
[INFO] [stdout]   |                                                        `ToPrimitive` is not local
[INFO] [stdout]   |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Mode`
[INFO] [stdout] 2 | pub enum Mode {
[INFO] [stdout]   |          ---- `Mode` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:7:41
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                         ^------------
[INFO] [stdout]   |                                         |
[INFO] [stdout]   |                                         `FromPrimitive` is not local
[INFO] [stdout]   |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Gain`
[INFO] [stdout] 8 | pub enum Gain {
[INFO] [stdout]   |          ---- `Gain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:7:56
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                                        ^----------
[INFO] [stdout]   |                                                        |
[INFO] [stdout]   |                                                        `ToPrimitive` is not local
[INFO] [stdout]   |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Gain`
[INFO] [stdout] 8 | pub enum Gain {
[INFO] [stdout]   |          ---- `Gain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:30:41
[INFO] [stdout]    |
[INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MeasurementRate`
[INFO] [stdout] 31 | pub enum MeasurementRate {
[INFO] [stdout]    |          --------------- `MeasurementRate` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:30:56
[INFO] [stdout]    |
[INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_MeasurementRate`
[INFO] [stdout] 31 | pub enum MeasurementRate {
[INFO] [stdout]    |          --------------- `MeasurementRate` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:40:41
[INFO] [stdout]    |
[INFO] [stdout] 40 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_IntegrationTime`
[INFO] [stdout] 41 | pub enum IntegrationTime {
[INFO] [stdout]    |          --------------- `IntegrationTime` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:40:56
[INFO] [stdout]    |
[INFO] [stdout] 40 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_IntegrationTime`
[INFO] [stdout] 41 | pub enum IntegrationTime {
[INFO] [stdout]    |          --------------- `IntegrationTime` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:68:41
[INFO] [stdout]    |
[INFO] [stdout] 68 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ISRMode`
[INFO] [stdout] 69 | pub enum ISRMode {
[INFO] [stdout]    |          ------- `ISRMode` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:68:56
[INFO] [stdout]    |
[INFO] [stdout] 68 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ISRMode`
[INFO] [stdout] 69 | pub enum ISRMode {
[INFO] [stdout]    |          ------- `ISRMode` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:74:41
[INFO] [stdout]    |
[INFO] [stdout] 74 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ISRPol`
[INFO] [stdout] 75 | pub enum ISRPol {
[INFO] [stdout]    |          ------ `ISRPol` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:74:56
[INFO] [stdout]    |
[INFO] [stdout] 74 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ISRPol`
[INFO] [stdout] 75 | pub enum ISRPol {
[INFO] [stdout]    |          ------ `ISRPol` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:80:41
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DataValidity`
[INFO] [stdout] 81 | pub enum DataValidity {
[INFO] [stdout]    |          ------------ `DataValidity` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:80:56
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_DataValidity`
[INFO] [stdout] 81 | pub enum DataValidity {
[INFO] [stdout]    |          ------------ `DataValidity` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:86:41
[INFO] [stdout]    |
[INFO] [stdout] 86 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DataStatus`
[INFO] [stdout] 87 | pub enum DataStatus {
[INFO] [stdout]    |          ---------- `DataStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:86:56
[INFO] [stdout]    |
[INFO] [stdout] 86 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_DataStatus`
[INFO] [stdout] 87 | pub enum DataStatus {
[INFO] [stdout]    |          ---------- `DataStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:92:28
[INFO] [stdout]    |
[INFO] [stdout] 92 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                            ^------------
[INFO] [stdout]    |                            |
[INFO] [stdout]    |                            `FromPrimitive` is not local
[INFO] [stdout]    |                            move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_IntStatus`
[INFO] [stdout] 93 | pub enum IntStatus {
[INFO] [stdout]    |          --------- `IntStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:92:43
[INFO] [stdout]    |
[INFO] [stdout] 92 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                           ^----------
[INFO] [stdout]    |                                           |
[INFO] [stdout]    |                                           `ToPrimitive` is not local
[INFO] [stdout]    |                                           move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_IntStatus`
[INFO] [stdout] 93 | pub enum IntStatus {
[INFO] [stdout]    |          --------- `IntStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:98:28
[INFO] [stdout]    |
[INFO] [stdout] 98 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                            ^------------
[INFO] [stdout]    |                            |
[INFO] [stdout]    |                            `FromPrimitive` is not local
[INFO] [stdout]    |                            move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ResetStatus`
[INFO] [stdout] 99 | pub enum ResetStatus {
[INFO] [stdout]    |          ----------- `ResetStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:98:43
[INFO] [stdout]    |
[INFO] [stdout] 98 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                           ^----------
[INFO] [stdout]    |                                           |
[INFO] [stdout]    |                                           `ToPrimitive` is not local
[INFO] [stdout]    |                                           move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ResetStatus`
[INFO] [stdout] 99 | pub enum ResetStatus {
[INFO] [stdout]    |          ----------- `ResetStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling unescaper v0.1.8
[INFO] [stderr]    Compiling embedded-hal-mock v0.10.0
[INFO] [stderr]    Compiling nix v0.26.4
[INFO] [stderr]    Compiling gpio-cdev v0.6.0
[INFO] [stderr]    Compiling sysfs_gpio v0.6.2
[INFO] [stderr]    Compiling i2cdev v0.6.2
[INFO] [stderr]    Compiling serialport v4.9.0
[INFO] [stderr]    Compiling spidev v0.6.1
[INFO] [stderr]    Compiling linux-embedded-hal v0.4.1
[INFO] [stderr]    Compiling ltr303 v0.1.4 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::create_register`
[INFO] [stdout]  --> src/registers.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::create_register;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:1:41
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                         ^------------
[INFO] [stdout]   |                                         |
[INFO] [stdout]   |                                         `FromPrimitive` is not local
[INFO] [stdout]   |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Mode`
[INFO] [stdout] 2 | pub enum Mode {
[INFO] [stdout]   |          ---- `Mode` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:1:56
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                                        ^----------
[INFO] [stdout]   |                                                        |
[INFO] [stdout]   |                                                        `ToPrimitive` is not local
[INFO] [stdout]   |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Mode`
[INFO] [stdout] 2 | pub enum Mode {
[INFO] [stdout]   |          ---- `Mode` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:7:41
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                         ^------------
[INFO] [stdout]   |                                         |
[INFO] [stdout]   |                                         `FromPrimitive` is not local
[INFO] [stdout]   |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Gain`
[INFO] [stdout] 8 | pub enum Gain {
[INFO] [stdout]   |          ---- `Gain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:7:56
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                                        ^----------
[INFO] [stdout]   |                                                        |
[INFO] [stdout]   |                                                        `ToPrimitive` is not local
[INFO] [stdout]   |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Gain`
[INFO] [stdout] 8 | pub enum Gain {
[INFO] [stdout]   |          ---- `Gain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:30:41
[INFO] [stdout]    |
[INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MeasurementRate`
[INFO] [stdout] 31 | pub enum MeasurementRate {
[INFO] [stdout]    |          --------------- `MeasurementRate` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:30:56
[INFO] [stdout]    |
[INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_MeasurementRate`
[INFO] [stdout] 31 | pub enum MeasurementRate {
[INFO] [stdout]    |          --------------- `MeasurementRate` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:40:41
[INFO] [stdout]    |
[INFO] [stdout] 40 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_IntegrationTime`
[INFO] [stdout] 41 | pub enum IntegrationTime {
[INFO] [stdout]    |          --------------- `IntegrationTime` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:40:56
[INFO] [stdout]    |
[INFO] [stdout] 40 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_IntegrationTime`
[INFO] [stdout] 41 | pub enum IntegrationTime {
[INFO] [stdout]    |          --------------- `IntegrationTime` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:68:41
[INFO] [stdout]    |
[INFO] [stdout] 68 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ISRMode`
[INFO] [stdout] 69 | pub enum ISRMode {
[INFO] [stdout]    |          ------- `ISRMode` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:68:56
[INFO] [stdout]    |
[INFO] [stdout] 68 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ISRMode`
[INFO] [stdout] 69 | pub enum ISRMode {
[INFO] [stdout]    |          ------- `ISRMode` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:74:41
[INFO] [stdout]    |
[INFO] [stdout] 74 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ISRPol`
[INFO] [stdout] 75 | pub enum ISRPol {
[INFO] [stdout]    |          ------ `ISRPol` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:74:56
[INFO] [stdout]    |
[INFO] [stdout] 74 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ISRPol`
[INFO] [stdout] 75 | pub enum ISRPol {
[INFO] [stdout]    |          ------ `ISRPol` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:80:41
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DataValidity`
[INFO] [stdout] 81 | pub enum DataValidity {
[INFO] [stdout]    |          ------------ `DataValidity` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:80:56
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_DataValidity`
[INFO] [stdout] 81 | pub enum DataValidity {
[INFO] [stdout]    |          ------------ `DataValidity` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:86:41
[INFO] [stdout]    |
[INFO] [stdout] 86 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DataStatus`
[INFO] [stdout] 87 | pub enum DataStatus {
[INFO] [stdout]    |          ---------- `DataStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:86:56
[INFO] [stdout]    |
[INFO] [stdout] 86 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_DataStatus`
[INFO] [stdout] 87 | pub enum DataStatus {
[INFO] [stdout]    |          ---------- `DataStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:92:28
[INFO] [stdout]    |
[INFO] [stdout] 92 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                            ^------------
[INFO] [stdout]    |                            |
[INFO] [stdout]    |                            `FromPrimitive` is not local
[INFO] [stdout]    |                            move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_IntStatus`
[INFO] [stdout] 93 | pub enum IntStatus {
[INFO] [stdout]    |          --------- `IntStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:92:43
[INFO] [stdout]    |
[INFO] [stdout] 92 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                           ^----------
[INFO] [stdout]    |                                           |
[INFO] [stdout]    |                                           `ToPrimitive` is not local
[INFO] [stdout]    |                                           move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_IntStatus`
[INFO] [stdout] 93 | pub enum IntStatus {
[INFO] [stdout]    |          --------- `IntStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:98:28
[INFO] [stdout]    |
[INFO] [stdout] 98 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                            ^------------
[INFO] [stdout]    |                            |
[INFO] [stdout]    |                            `FromPrimitive` is not local
[INFO] [stdout]    |                            move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ResetStatus`
[INFO] [stdout] 99 | pub enum ResetStatus {
[INFO] [stdout]    |          ----------- `ResetStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:98:43
[INFO] [stdout]    |
[INFO] [stdout] 98 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                           ^----------
[INFO] [stdout]    |                                           |
[INFO] [stdout]    |                                           `ToPrimitive` is not local
[INFO] [stdout]    |                                           move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ResetStatus`
[INFO] [stdout] 99 | pub enum ResetStatus {
[INFO] [stdout]    |          ----------- `ResetStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 7.89s
[INFO] running `Command { std: "docker" "inspect" "ff67ccc6dba37269439905a726dce5e9c69ab3ca4f4cbb94e43d763ba787e2f0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ff67ccc6dba37269439905a726dce5e9c69ab3ca4f4cbb94e43d763ba787e2f0", kill_on_drop: false }`
[INFO] [stdout] ff67ccc6dba37269439905a726dce5e9c69ab3ca4f4cbb94e43d763ba787e2f0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] eee49d31ee70e859d33a7bb24fc3410069d7f94c0f32b9976b4ab9ff39aa1652
[INFO] running `Command { std: "docker" "start" "-a" "eee49d31ee70e859d33a7bb24fc3410069d7f94c0f32b9976b4ab9ff39aa1652", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `crate::create_register`
[INFO] [stderr]  --> src/registers.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::create_register;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]  --> src/fields.rs:1:41
[INFO] [stderr]   |
[INFO] [stderr] 1 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]   |                                         ^------------
[INFO] [stderr]   |                                         |
[INFO] [stderr]   |                                         `FromPrimitive` is not local
[INFO] [stderr]   |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Mode`
[INFO] [stderr] 2 | pub enum Mode {
[INFO] [stderr]   |          ---- `Mode` is not local
[INFO] [stderr]   |
[INFO] [stderr]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stderr]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]  --> src/fields.rs:1:56
[INFO] [stderr]   |
[INFO] [stderr] 1 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]   |                                                        ^----------
[INFO] [stderr]   |                                                        |
[INFO] [stderr]   |                                                        `ToPrimitive` is not local
[INFO] [stderr]   |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Mode`
[INFO] [stderr] 2 | pub enum Mode {
[INFO] [stderr]   |          ---- `Mode` is not local
[INFO] [stderr]   |
[INFO] [stderr]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]  --> src/fields.rs:7:41
[INFO] [stderr]   |
[INFO] [stderr] 7 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]   |                                         ^------------
[INFO] [stderr]   |                                         |
[INFO] [stderr]   |                                         `FromPrimitive` is not local
[INFO] [stderr]   |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Gain`
[INFO] [stderr] 8 | pub enum Gain {
[INFO] [stderr]   |          ---- `Gain` is not local
[INFO] [stderr]   |
[INFO] [stderr]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]  --> src/fields.rs:7:56
[INFO] [stderr]   |
[INFO] [stderr] 7 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]   |                                                        ^----------
[INFO] [stderr]   |                                                        |
[INFO] [stderr]   |                                                        `ToPrimitive` is not local
[INFO] [stderr]   |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Gain`
[INFO] [stderr] 8 | pub enum Gain {
[INFO] [stderr]   |          ---- `Gain` is not local
[INFO] [stderr]   |
[INFO] [stderr]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:30:41
[INFO] [stderr]    |
[INFO] [stderr] 30 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                         ^------------
[INFO] [stderr]    |                                         |
[INFO] [stderr]    |                                         `FromPrimitive` is not local
[INFO] [stderr]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MeasurementRate`
[INFO] [stderr] 31 | pub enum MeasurementRate {
[INFO] [stderr]    |          --------------- `MeasurementRate` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:30:56
[INFO] [stderr]    |
[INFO] [stderr] 30 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                                        ^----------
[INFO] [stderr]    |                                                        |
[INFO] [stderr]    |                                                        `ToPrimitive` is not local
[INFO] [stderr]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_MeasurementRate`
[INFO] [stderr] 31 | pub enum MeasurementRate {
[INFO] [stderr]    |          --------------- `MeasurementRate` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:40:41
[INFO] [stderr]    |
[INFO] [stderr] 40 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                         ^------------
[INFO] [stderr]    |                                         |
[INFO] [stderr]    |                                         `FromPrimitive` is not local
[INFO] [stderr]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_IntegrationTime`
[INFO] [stderr] 41 | pub enum IntegrationTime {
[INFO] [stderr]    |          --------------- `IntegrationTime` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:40:56
[INFO] [stderr]    |
[INFO] [stderr] 40 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                                        ^----------
[INFO] [stderr]    |                                                        |
[INFO] [stderr]    |                                                        `ToPrimitive` is not local
[INFO] [stderr]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_IntegrationTime`
[INFO] [stderr] 41 | pub enum IntegrationTime {
[INFO] [stderr]    |          --------------- `IntegrationTime` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:68:41
[INFO] [stderr]    |
[INFO] [stderr] 68 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                         ^------------
[INFO] [stderr]    |                                         |
[INFO] [stderr]    |                                         `FromPrimitive` is not local
[INFO] [stderr]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ISRMode`
[INFO] [stderr] 69 | pub enum ISRMode {
[INFO] [stderr]    |          ------- `ISRMode` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:68:56
[INFO] [stderr]    |
[INFO] [stderr] 68 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                                        ^----------
[INFO] [stderr]    |                                                        |
[INFO] [stderr]    |                                                        `ToPrimitive` is not local
[INFO] [stderr]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ISRMode`
[INFO] [stderr] 69 | pub enum ISRMode {
[INFO] [stderr]    |          ------- `ISRMode` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:74:41
[INFO] [stderr]    |
[INFO] [stderr] 74 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                         ^------------
[INFO] [stderr]    |                                         |
[INFO] [stderr]    |                                         `FromPrimitive` is not local
[INFO] [stderr]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ISRPol`
[INFO] [stderr] 75 | pub enum ISRPol {
[INFO] [stderr]    |          ------ `ISRPol` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:74:56
[INFO] [stderr]    |
[INFO] [stderr] 74 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                                        ^----------
[INFO] [stderr]    |                                                        |
[INFO] [stderr]    |                                                        `ToPrimitive` is not local
[INFO] [stderr]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ISRPol`
[INFO] [stderr] 75 | pub enum ISRPol {
[INFO] [stderr]    |          ------ `ISRPol` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:80:41
[INFO] [stderr]    |
[INFO] [stderr] 80 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                         ^------------
[INFO] [stderr]    |                                         |
[INFO] [stderr]    |                                         `FromPrimitive` is not local
[INFO] [stderr]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DataValidity`
[INFO] [stderr] 81 | pub enum DataValidity {
[INFO] [stderr]    |          ------------ `DataValidity` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:80:56
[INFO] [stderr]    |
[INFO] [stderr] 80 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                                        ^----------
[INFO] [stderr]    |                                                        |
[INFO] [stderr]    |                                                        `ToPrimitive` is not local
[INFO] [stderr]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_DataValidity`
[INFO] [stderr] 81 | pub enum DataValidity {
[INFO] [stderr]    |          ------------ `DataValidity` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:86:41
[INFO] [stderr]    |
[INFO] [stderr] 86 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                         ^------------
[INFO] [stderr]    |                                         |
[INFO] [stderr]    |                                         `FromPrimitive` is not local
[INFO] [stderr]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DataStatus`
[INFO] [stderr] 87 | pub enum DataStatus {
[INFO] [stderr]    |          ---------- `DataStatus` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:86:56
[INFO] [stderr]    |
[INFO] [stderr] 86 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                                        ^----------
[INFO] [stderr]    |                                                        |
[INFO] [stderr]    |                                                        `ToPrimitive` is not local
[INFO] [stderr]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_DataStatus`
[INFO] [stderr] 87 | pub enum DataStatus {
[INFO] [stderr]    |          ---------- `DataStatus` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:92:28
[INFO] [stderr]    |
[INFO] [stderr] 92 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                            ^------------
[INFO] [stderr]    |                            |
[INFO] [stderr]    |                            `FromPrimitive` is not local
[INFO] [stderr]    |                            move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_IntStatus`
[INFO] [stderr] 93 | pub enum IntStatus {
[INFO] [stderr]    |          --------- `IntStatus` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:92:43
[INFO] [stderr]    |
[INFO] [stderr] 92 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                           ^----------
[INFO] [stderr]    |                                           |
[INFO] [stderr]    |                                           `ToPrimitive` is not local
[INFO] [stderr]    |                                           move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_IntStatus`
[INFO] [stderr] 93 | pub enum IntStatus {
[INFO] [stderr]    |          --------- `IntStatus` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:98:28
[INFO] [stderr]    |
[INFO] [stderr] 98 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                            ^------------
[INFO] [stderr]    |                            |
[INFO] [stderr]    |                            `FromPrimitive` is not local
[INFO] [stderr]    |                            move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ResetStatus`
[INFO] [stderr] 99 | pub enum ResetStatus {
[INFO] [stderr]    |          ----------- `ResetStatus` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stderr]   --> src/fields.rs:98:43
[INFO] [stderr]    |
[INFO] [stderr] 98 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stderr]    |                                           ^----------
[INFO] [stderr]    |                                           |
[INFO] [stderr]    |                                           `ToPrimitive` is not local
[INFO] [stderr]    |                                           move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ResetStatus`
[INFO] [stderr] 99 | pub enum ResetStatus {
[INFO] [stderr]    |          ----------- `ResetStatus` is not local
[INFO] [stderr]    |
[INFO] [stderr]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stderr]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stderr]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stderr]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stderr]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: `ltr303` (lib) generated 21 warnings (run `cargo fix --lib -p ltr303` to apply 1 suggestion)
[INFO] [stderr] warning: `ltr303` (lib test) generated 21 warnings (21 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ltr303-e765ce5a8972ac97)
[INFO] [stdout] 
[INFO] [stdout] running 9 tests
[INFO] [stdout] test tests::part_id ... ok
[INFO] [stdout] test tests::manufacturer_info ... ok
[INFO] [stdout] test tests::single_shot_measurement ... ok
[INFO] [stdout] test tests::start_measurement ... ok
[INFO] [stdout] test tests::unit_tests::calculate_lux_from_raw ... ok
[INFO] [stdout] test tests::sensor_status ... ok
[INFO] [stdout] test tests::unit_tests::test_register_from_u8 ... ok
[INFO] [stdout] test tests::unit_tests::test_registers ... ok
[INFO] [stdout] test tests::unit_tests::test_fields ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests ltr303
[INFO] [stdout] 
[INFO] [stdout] running 5 tests
[INFO] [stdout] test src/lib.rs - (line 27) - compile ... ok
[INFO] [stdout] test src/lib.rs - (line 39) - compile ... ok
[INFO] [stdout] test src/lib.rs - (line 14) - compile ... ok
[INFO] [stdout] test src/registers.rs - registers::create_register (line 62) - compile fail ... ok
[INFO] [stdout] test src/macros.rs - macros::create_struct_with (line 6) - compile fail ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.25s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "eee49d31ee70e859d33a7bb24fc3410069d7f94c0f32b9976b4ab9ff39aa1652", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "eee49d31ee70e859d33a7bb24fc3410069d7f94c0f32b9976b4ab9ff39aa1652", kill_on_drop: false }`
[INFO] [stdout] eee49d31ee70e859d33a7bb24fc3410069d7f94c0f32b9976b4ab9ff39aa1652
